package com.dyb.config;

import java.util.TreeSet;

public class Drink implements Comparable {
    public String name;
    public int compareTo(Object o) {
        return 0;
    }

    public static void main(String[] args){
        Drink one = new Drink();
        Drink two = new Drink();
        one.name = "co";
        two.name="te";
        TreeSet<Drink> set = new TreeSet<>();
        set.add(one);
        set.add(two);
        for (Drink o : set) {
            System.out.println(o.name);
        }

    }
}

